import request from '@/utils/request'

export function getList(page) {
  return request({
    url: '/api/equipmentType/list',
    method: 'get',
    params: {...page}
  })
}

export function getListType(page) {
  return request({
    url: '/api/equipmentType/list',
    method: 'get',
    params: {...page}
  })
}

export function add(obj) {
  return request({
    url: '/api/equipmentType/add',
    method: 'post',
    data: {...obj}
  })
}

export function edit(obj) {
  return request({
    url: '/api/equipmentType/update',
    method: 'post',
    data: {...obj}
  })
}

export function deleteType(id) {
  return request({
    url: '/api/equipmentType/delete',
    method: 'post',
    params: {id}
  })
}
